package Common 
{
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author Serg de Adelantado
	 */
	public class NormalCheckbox extends Sprite 
	{
		private var FIsSelected:Boolean;
		private var FSelected:Sprite;
		private var FNormal:Sprite;
		
		public function NormalCheckbox() 
		{
			FSelected = getChildByName('selected') as Sprite;
			FNormal = getChildByName('normal') as Sprite;
			mouseChildren = false;
			FSelected.focusRect = FNormal.focusRect = focusRect = false;			
			Selected = false;
		}
		
		public function get Selected():Boolean
		{ 
			return FIsSelected; 
		}
		
		public function set Selected(ASelected:Boolean):void 
		{
			FIsSelected = ASelected;
			FSelected.visible = FIsSelected;
			FNormal.visible = !FIsSelected;			
		}		
	}
}